(function() {
    'use strict';

    angular
        .module('lighter')
        .controller('TopicController', TopicController);

        /** @ngInject */
        function TopicController(nodeAPIservice, $stateParams, $log) {
            var vm = this;
            
            nodeAPIservice.getTopicDtails($stateParams.id).success(function(response) {
                vm.items = response.data;

                $log.log(angular.toJson(vm.items, true)); //true格式化显示。请查看docs
            })
        }
})();